import { BaseIdInput } from '/@/api-services/models/base-id-input'
import {BaseApi} from '/@/api-services/apis/baseApi'

/**
 * 文件服务
 */
 class SysFileApi extends BaseApi {  
    download=async(data:BaseIdInput)=>{
        return this.normalGetBlob<Object>(`/download`,data)
    }
    downloadByPath=async(data:Object)=>{
        return this.normalGetBlob<Object>(`/downloadByPath`,data)
    }
    upload=async(data:FormData)=>{
        return this.normalPost(`/upload`,data)
    }
    batchUpload=async(data:Array<FormData>)=>{
        return this.normalPost(`/batchUpload`,data)
    }
 }

 export default new SysFileApi('/system/file');